package com.example.demo.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author lyc
 * @date 2019/9/6.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Menu {

    private Integer menuId;

    private Integer parentId;

    private String menuName;

    private String url;

    private List<Menu> children;

    public Menu(Integer menuId, Integer parentId, String menuName) {
        this.menuId = menuId;
        this.parentId = parentId;
        this.menuName = menuName;
    }
}